package com.fry.expandablelistviewexdemo;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

public class LinearLayoutEx extends LinearLayout{

	public LinearLayoutEx(Context context) {
		super(context);
	}
	
	public LinearLayoutEx(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	
	// fix onclick do not be called if this view is not add to view hierarchy.
	// just for use by ExpandableListViewEx as the pinned header view.
	@Override
	public boolean post(Runnable action) {
		if(getParent() != null) {
			return super.post(action);
		}
		return false;
	}

}
